﻿using SuperFrame.Charts.Points;
using System.Windows.Media;

namespace SuperFrame.Charts
{
    /// <summary>
    /// DoublePoint
    /// </summary>
    public class PointDouble : ChartPoint
    {
        public PointDouble()
        {
        }

        public PointDouble(string Id, double data, double value)
        {
            this.Data = data;
            this.Value = value;
            this.ID = Id;
        }
        public PointDouble(string Id, double data, double value, Brush color)
        {
            this.Data = data;
            this.Value = value;
            this.Color = color;
            this.ID = Id;
        }
        public PointDouble(string Id, double data, double value, string describe)
        {
            this.Data = data;
            this.Value = value;
            this.Describe = describe;
            this.ID = Id;
        }
        public PointDouble(string Id, double data, double value, Brush color, string describe)
        {
            this.Data = data;
            this.Value = value;
            this.Color = color;
            this.Describe = describe;
            this.ID = Id;
        }


        public PointDouble(double data, double value)
        {
            this.Data = data;
            this.Value = value;
        }
        public PointDouble(double data, double value, Brush color)
        {
            this.Data = data;
            this.Value = value;
            this.Color = color;
        }
        public PointDouble(double data, double value, string describe)
        {
            this.Data = data;
            this.Value = value;
            this.Describe = describe;
        }
        public PointDouble(double data, double value, Brush color, string describe)
        {
            this.Data = data;
            this.Value = value;
            this.Color = color;
            this.Describe = describe;
        }

        private double m_data;
        public double Data
        {
            get
            {
                return m_data;
            }
            set
            {
                m_data = value;
                this.XValue = value;
            }
        }

        private double m_value;
        public double Value
        {
            get
            {
                return m_value;
            }
            set
            {
                m_value = value;
                this.YValue = value;
            }
        }

    }
}
